<?php
/**
 * Created by JetBrains PhpStorm.
 * User: xx
 * Date: 14-8-18
 * Time: 下午4:56
 * To change this template use File | Settings | File Templates.
 */

class Analyzerorder
{
    var $CI;
    var $local_time; //时间
    var $persMod;

    public function __construct($config = array())
    {
        $this->CI =& get_instance();
        $this->local_time = time();
        if (count($config) > 0) {
            $this->initialize($config);
        }

        $this->CI->load->model('persistence_model', 'persMod');
        $this->persMod = & $this->CI->persMod;
    }

    public function weight($order, $spec)
    {
        return 1;
    }

    public function limited_time($order, $spec)
    {
        $count = sizeof($spec);
        return 5 * 60 * $count;
    }

}